package cn.cloudtogo.common.atomapi.token;

import lombok.Data;

/**
 * @author yaolianhua789@gmail.com
 **/
@Data
public class ApiTokenAuthentication {

    private ApiToken apiToken;
    private ApiResource resource;

    public static ApiTokenAuthentication of(ApiToken apiToken, ApiResource resource) {
        ApiTokenAuthentication authentication = new ApiTokenAuthentication();

        authentication.setApiToken(apiToken);
        authentication.setResource(resource);

        return authentication;
    }
}
